const tenant = [
  {
    path: 'tenant',
    component: () => import(/* webpackChunkName: "platform" */ '@/layout/platform'),
    name: 'Tenant',
    redirect: '/tenant',
    meta: {
      title: 'tenantManagement',
      icon: 'el-icon-s-help',
      code: 'Tenant',
      deleteCode: true
    },
    children: [
      {
        path: 'tenantmanagement',
        name: 'TenantManagement',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/tenant/tenantManagement/index'),
        meta: {
          title: 'tenantManagement',
          icon: 'tree',
          code: 'TenantManagement',
          allIdentity: true
        },
        children: [
          {
            path: 'tenantsCreate',
            name: 'TenantsCreate',
            meta: {
              title: 'button.add',
              code: 'TenantsCreate'
            },
            hidden: true
          },
          {
            path: 'tenantsUpdate',
            name: 'TenantsUpdate',
            meta: {
              title: 'button.edit',
              code: 'TenantsUpdate'
            },
            hidden: true
          },
          {
            path: 'tenantsDelete',
            name: 'TenantsDelete',
            meta: {
              title: 'button.delete',
              code: 'TenantsDelete'
            },
            hidden: true
          }
        ]
      },
      {
        path: 'versionmanagement',
        name: 'Versionmanagement',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/tenant/version/index'),
        meta: {
          title: 'versionManagement',
          icon: 'icon_version',
          code: 'Versionmanagement',
          allIdentity: true
        },
        children: [
          {
            path: 'editionsCreate',
            name: 'EditionsCreate',
            meta: {
              title: 'button.add',
              code: 'EditionsCreate'
            },
            hidden: true
          },
          {
            path: 'editionsUpdate',
            name: 'EditionsUpdate',
            meta: {
              title: 'button.edit',
              code: 'EditionsUpdate'
            },
            hidden: true
          },
          {
            path: 'editionsDelete',
            name: 'EditionsDelete',
            meta: {
              title: 'button.delete',
              code: 'EditionsDelete'
            },
            hidden: true
          }
        ]
      },
      {
        path: 'messagereceived',
        name: 'Messagereceived',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/tenant/messageReceived/index'),
        meta: {
          title: 'messageReceived',
          icon: 'tree',
          code: 'Messagereceived'
        }
      }
      // {
      //   path: 'contract',
      //   name: 'Contract',
      //   component: () => import(/* webpackChunkName: "platform" */ '@/views/tenant/contract'),
      //   meta: { title: 'contract', icon: 'tree' code: 'Contract' }
      // }
    ]
  }
];

export default [
  ...tenant
];
